package com.qf.mvc2203.controller;

import com.qf.mvc2203.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/uc")
public class UserController {
    @RequestMapping("/adduser")
    public String addUser(User user){
        System.out.println("addUser");
        return "redirect:listuser";
    }
    @RequestMapping("/deluser")
    public String delUser(Integer userID){
        System.out.println("deluser");
        return "redirect:listuser";
    }
    @RequestMapping ("/listuser")
    public String listUser(){
        System.out.println("showUser");
        return "forward:/views/user.html";
    }
}
